package com.wechat.file.response;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class UploadResponse {
    /**
     * 文件ID
     */
    private String fileId;


    /**
     * 下载地址
     */
    private String downloadUrl;

    public static UploadResponse buildExistResponse(String fileId, String downloadUrl) {
        return UploadResponse.builder()
                .fileId(fileId)
                .downloadUrl(downloadUrl)
                .build();
    }


}
